package com.cnct.generic.dubbo.builder;


import java.util.ArrayList;
import java.util.List;

/**
 * 参数构建器
 * @author wangzhen
 */
public class ParamBuiler {

    private List<Object> params = new ArrayList<>();


    public ParamBuiler param(Object param){
        params.add(param);
        return this;
    }


    public List<Object> build(){
        List<Object> returnList = new ArrayList<>();
        returnList.addAll(params);
        params.clear();
        return returnList;
    }


}
